import request from '@/config/axios'
import requestDYXT from '@/config/axios'

// 获取分段器
export const getWaybillSegmentedDevice = async (params) => {
  return await request.getJL({
    url: '/queue/waybill/get-segmented-device',
    headers: {
      isToken: true
    },
    params
  })
}
// 列表分页
export const getPurchaseWaybillPage = async (params) => {
  return await request.getOriginalJL({
    url: '/queue/waybill/dispatch-page',
    params
  })
}
// 列表合计
export const getPurchaseWaybillPageTotal = async (params) => {
  return await request.getJL({
    url: '/queue/waybill/dispatch-page-total',
    params
  })
}
//获取详情
export const getInfoById = async (params) => {
  return await request.getJL({
    url: '/queue/waybill/get-dispatch-details',
    headers: {
      isToken: true
    },
    params
  })
}
//操作记录
export const waybillRecords = async (params) => {
  return await request.getJL({
    url: '/queue/waybill-details/get-dispatch-waybill-details-page',
    headers: {
      isToken: true
    },
    params
  })
}
//获取采销一码通详情
export const getPurSalesInfoById = async (params) => {
  return await request.getJL({
    url: '/queue/sale-waybill/get-dispatch-purchase-sale-waybill-byId',
    headers: {
      isToken: true
    },
    params
  })
}
